package com.smartmedical.system.domain;

import java.util.Date;

public class UserConsumptionRecord {
    /**
     * 学生课程评价实体类
     */
    private Long id;
    private int userId;  // 用户ID
    private int direction;  // 评分方向(1:正向, 0:负向)
    private int type;  // 评分类型(1:好, 2:较好, 3:一般, 4:较差, 5:坏)
    private int balance;  // 综合评分
    private int changeNum;  // 评分次数
    private String remark;  // 备注
    private Date createTime;  // 评价时间

    @Override
    public String toString() {
        return "UserConsumptionRecord{" +
                "id=" + id +
                ", userId=" + userId +
                ", direction=" + direction +
                ", type=" + type +
                ", balance=" + balance +
                ", changeNum=" + changeNum +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getBalance() {
        return balance;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public int getChangeNum() {
        return changeNum;
    }

    public void setChangeNum(int changeNum) {
        this.changeNum = changeNum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public UserConsumptionRecord() {
    }

    public UserConsumptionRecord(Long id, int userId, int direction, int type, int balance, int changeNum, String remark, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.direction = direction;
        this.type = type;
        this.balance = balance;
        this.changeNum = changeNum;
        this.remark = remark;
        this.createTime = createTime;
    }
}
